package view 
{
	import events.MovedObjectEvent;
	import flash.display.MovieClip;
	import flash.events.Event;
	import model.MovedObject;
	
	/**
	 * ...
	 * @author vkozhaev
	 */
	public class VMovedObject extends MovieClip
	{
		protected var _model:MovedObject;
		public function VMovedObject(_model:MovedObject) 
		{
			super();
			this._model = _model;
			this.addEventListener(Event.ENTER_FRAME, enterframeHandler);
		}
		
				
		public function get model():MovedObject {
			return this._model;
		}
		
		protected function enterframeHandler(e:Event):void {
			this.x = _model.coords.x;
			this.y = _model.coords.y;
			//trace("coords x",x,"y",y);
		}		
		
		
		
		
	}

}